public class Main {
    public static void main(String[] args) {
        MyArray<String> myArray1 = new MyArray<>();
        myArray1.setValue(0,"hahaha");
        myArray1.setValue(1,"nihao");
        String str1 = myArray1.getValue(1);
        System.out.println(str1);

        //<(不能是基本数据类型int，只能是引用类型Integer)>
        MyArray<Integer> myArray2 = new MyArray<>();
        myArray2.setValue(2,3);
        myArray2.setValue(3,7);
        int val = myArray2.getValue(3);
        System.out.println(val);



    }

}